# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-email-mime-attachment-stripper
pkgver=1.317
pkgrel=4
pkgdesc="strip the attachments from an email "
arch=('any')
url="https://search.cpan.org/dist/Email-MIME-Attachment-Stripper"
license=('GPL' 'PerlArtistic')
depends=('perl-email-mime-modifier>=1.442' 'perl-email-mime-contenttype>=1.0' 'perl-email-mime>=1.861')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/R/RJ/RJBS/Email-MIME-Attachment-Stripper-$pkgver.tar.gz)
sha256sums=('dcb98b09dc3e8f757ec3882a4234548108bb2d12e3cfadf95a26cef381a9e789')

build() {
  cd  "$srcdir"/Email-MIME-Attachment-Stripper-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Email-MIME-Attachment-Stripper-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
